package com.sdk.paas.core.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author limaosheng
 * @create 12:12 2021/9/2
 * @desc 错误码
 */
@Getter
@AllArgsConstructor
public enum ErrorEnum {
    /**
     * 异常错误码
     */
    ERROR(999, ""),
    SIGN_ERROR(1000, "签名错误"),
    REQUEST_ERROR(1001, "请求超时或未知异常"),
    REQUEST_FAIL_ERROR(1002, "请求失败状态码"),
    JSON_ERROR(1003, "JSON转义失败"),
    TOKEN_ERROR(1004, "获取token失败"),
    //AIOT传错误的appkey获取token返回的结果{"code":403,"data":"access deny!"}
    TOKEN_JSON_ERROR(1005, "token获取JSON转义失败"),
    PARAM_ERROR(1006, "请求参数错误"),
    TOKEN_TIMEOUT(1007, "token 失效");

    private Integer key;
    private String desc;
}
